import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CreateUserDto {
  @ApiProperty({ description: '用户ID' })
  @IsNotEmpty({message:"请输入用户ID"})
  id: string;

  @ApiProperty({ description: '用户名' })
  @IsNotEmpty({message:"请输入用户名"})
  username: string;

  @ApiProperty({ description: '手机号' })
  @IsNotEmpty({message:"请输入手机号"})
  phone: string;

  @ApiProperty({ description: '昵称' })
  @IsNotEmpty({message:"请输入昵称"})
  nickname: string;

  @ApiProperty({ description: '邮箱' })
  @IsNotEmpty({message:"请输入邮箱"})
  email: string;

  @ApiProperty({ description: '备注' })
  @IsNotEmpty({message:"请输入备注"})
  remark: string;
}
